package com.xjrh.traintravel.collector.netty.command.config;

import com.xjrh.traintravel.collector.netty.command.BaseCommand;

import java.io.Serializable;

/**
 * 通讯协议命令-参数设置-02：采集策略
 *
 * @author snps
 * @create 2022-01-27 14:15
 * @describe
 **/
public class Config02 extends BaseCommand implements Serializable {

    private static final long serialVersionUID = -313181119105263636L;


    /******************************
     * 部件（轴箱、电机、齿轮箱）
     *      固定：1
     */
    private int field1 = 1;

    /**
     * 部件-速度
     */
    private int field2;

    /**
     * 部件-速度波动范围
     */
    private int field3;

    /**
     * 部件-采集时间（触发时间，单位：秒）
     */
    private int field4;

    /**
     * 部件-采集时间（持续时间，单位：秒）
     */
    private int field5;

    /**
     * 部件-频率单位
     *      固定：2-KHz
     */
    private int field6;

    /**
     * 部件-频率
     */
    private int field7;

    /**
     * 部件-最大采集次数
     */
    private int field8;

    /******************************
     * 波磨
     *      固定：2
     */
    private int field9 = 2;

    /**
     * 波磨-速度
     */
    private int field10;

    /**
     * 波磨-速度波动范围
     */
    private int field11;

    /**
     * 波磨-采集时间（触发时间，单位：秒）
     */
    private int field12;

    /**
     * 波磨-采集时间（持续时间，单位：秒）
     */
    private int field13;

    /**
     * 波磨-频率单位
     */
    private int field14;

    /**
     * 波磨-频率
     */
    private int field15;

    /******************************
     * 温度
     *      固定：3
     */
    private int field16 = 3;

    /**
     * 温度-速度（温度，没有速度）
     *      固定：FF
     */
    private String field17 = "FF";

    /**
     * 温度-速度波动范围
     *      固定：FF
     */
    private String field18 = "FF";

    /**
     * 温度-采集时间（触发时间，单位：秒）
     *      固定：FF
     */
    private String field19 = "FF";

    /**
     * 温度-采集时间（持续时间，单位：秒）
     *      固定：FF
     */
    private String field20 = "FF";

    /**
     * 温度-频率单位
     */
    private int field21;

    /**
     * 温度-频率
     */
    private int field22;


    /**
     * Constructor
     */
    public Config02() {
        this.setCommonNo("02");
    }

    /**************************************
     * Getter and Setter
     */
    public int getField1() {
        return field1;
    }

    public void setField1(int field1) {
        this.field1 = field1;
    }

    public int getField2() {
        return field2;
    }

    public void setField2(int field2) {
        this.field2 = field2;
    }

    public int getField3() {
        return field3;
    }

    public void setField3(int field3) {
        this.field3 = field3;
    }

    public int getField4() {
        return field4;
    }

    public void setField4(int field4) {
        this.field4 = field4;
    }

    public int getField5() {
        return field5;
    }

    public void setField5(int field5) {
        this.field5 = field5;
    }

    public int getField6() {
        return field6;
    }

    public void setField6(int field6) {
        this.field6 = field6;
    }

    public int getField7() {
        return field7;
    }

    public void setField7(int field7) {
        this.field7 = field7;
    }

    public int getField8() {
        return field8;
    }

    public void setField8(int field8) {
        this.field8 = field8;
    }

    public int getField9() {
        return field9;
    }

    public void setField9(int field9) {
        this.field9 = field9;
    }

    public int getField10() {
        return field10;
    }

    public void setField10(int field10) {
        this.field10 = field10;
    }

    public int getField11() {
        return field11;
    }

    public void setField11(int field11) {
        this.field11 = field11;
    }

    public int getField12() {
        return field12;
    }

    public void setField12(int field12) {
        this.field12 = field12;
    }

    public int getField13() {
        return field13;
    }

    public void setField13(int field13) {
        this.field13 = field13;
    }

    public int getField14() {
        return field14;
    }

    public void setField14(int field14) {
        this.field14 = field14;
    }

    public int getField15() {
        return field15;
    }

    public void setField15(int field15) {
        this.field15 = field15;
    }

    public int getField16() {
        return field16;
    }

    public void setField16(int field16) {
        this.field16 = field16;
    }

    public String getField17() {
        return field17;
    }

    public void setField17(String field17) {
        this.field17 = field17;
    }

    public String getField18() {
        return field18;
    }

    public void setField18(String field18) {
        this.field18 = field18;
    }

    public String getField19() {
        return field19;
    }

    public void setField19(String field19) {
        this.field19 = field19;
    }

    public String getField20() {
        return field20;
    }

    public void setField20(String field20) {
        this.field20 = field20;
    }

    public int getField21() {
        return field21;
    }

    public void setField21(int field21) {
        this.field21 = field21;
    }

    public int getField22() {
        return field22;
    }

    public void setField22(int field22) {
        this.field22 = field22;
    }


    @Override
    public String toString() {
        return "Config02{" +
                "field1=" + field1 +
                ", field2=" + field2 +
                ", field3=" + field3 +
                ", field4=" + field4 +
                ", field5=" + field5 +
                ", field6=" + field6 +
                ", field7=" + field7 +
                ", field8=" + field8 +
                ", field9=" + field9 +
                ", field10=" + field10 +
                ", field11=" + field11 +
                ", field12=" + field12 +
                ", field13=" + field13 +
                ", field14=" + field14 +
                ", field15=" + field15 +
                ", field16=" + field16 +
                ", field17='" + field17 + '\'' +
                ", field18='" + field18 + '\'' +
                ", field19='" + field19 + '\'' +
                ", field20='" + field20 + '\'' +
                ", field21=" + field21 +
                ", field22=" + field22 +
                '}';
    }

}